[INFO] fetching crate tiny-multihash-proc-macro 0.1.0...
[INFO] testing tiny-multihash-proc-macro-0.1.0 against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065
[INFO] extracting crate tiny-multihash-proc-macro 0.1.0 into /workspace/builds/worker-2-tc1/source
[INFO] started tweaking crates.io crate tiny-multihash-proc-macro 0.1.0
[INFO] finished tweaking crates.io crate tiny-multihash-proc-macro 0.1.0
[INFO] tweaked toml for crates.io crate tiny-multihash-proc-macro 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate tiny-multihash-proc-macro 0.1.0 on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 23 packages to latest compatible versions
[INFO] [stderr]       Adding pretty_assertions v0.6.1 (available: v1.4.1)
[INFO] [stderr]       Adding proc-macro-crate v0.1.5 (available: v3.5.0)
[INFO] [stderr]       Adding syn v1.0.109 (available: v2.0.117)
[INFO] [stderr]       Adding synstructure v0.12.6 (available: v0.13.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded output_vt100 v0.1.3
[INFO] [stderr]   Downloaded pretty_assertions v0.6.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 28b26fcc4c82a433586d4027fdc6d759ef35d2cc19e3bd0df9c9357f502bde63
[INFO] running `Command { std: "docker" "start" "-a" "28b26fcc4c82a433586d4027fdc6d759ef35d2cc19e3bd0df9c9357f502bde63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "28b26fcc4c82a433586d4027fdc6d759ef35d2cc19e3bd0df9c9357f502bde63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "28b26fcc4c82a433586d4027fdc6d759ef35d2cc19e3bd0df9c9357f502bde63", kill_on_drop: false }`
[INFO] [stdout] 28b26fcc4c82a433586d4027fdc6d759ef35d2cc19e3bd0df9c9357f502bde63
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6c5efe61cc15745d3abc5159ad47b4a9d74eff65bcdb6f15b0a5eb4ed1629f99
[INFO] running `Command { std: "docker" "start" "-a" "6c5efe61cc15745d3abc5159ad47b4a9d74eff65bcdb6f15b0a5eb4ed1629f99", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling toml v0.5.11
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling tiny-multihash-proc-macro v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `paren` is never read
[INFO] [stdout]   --> src/utils.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Attrs<A> {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 12 |     pub paren: syn::token::Paren,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attrs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `key` and `eq` are never read
[INFO] [stdout]   --> src/utils.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Attr<K, V> {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 27 |     pub key: K,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 28 |     pub eq: syn::token::Eq,
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.55s
[INFO] running `Command { std: "docker" "inspect" "6c5efe61cc15745d3abc5159ad47b4a9d74eff65bcdb6f15b0a5eb4ed1629f99", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c5efe61cc15745d3abc5159ad47b4a9d74eff65bcdb6f15b0a5eb4ed1629f99", kill_on_drop: false }`
[INFO] [stdout] 6c5efe61cc15745d3abc5159ad47b4a9d74eff65bcdb6f15b0a5eb4ed1629f99
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 085e539e547f0ced15f8c87c51e7fe6bf4d654c5e9c288b38eb4ee5363ca7db9
[INFO] running `Command { std: "docker" "start" "-a" "085e539e547f0ced15f8c87c51e7fe6bf4d654c5e9c288b38eb4ee5363ca7db9", kill_on_drop: false }`
[INFO] [stderr]    Compiling difference v2.0.0
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling tiny-multihash-proc-macro v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling pretty_assertions v0.6.1
[INFO] [stdout] warning: field `paren` is never read
[INFO] [stdout]   --> src/utils.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Attrs<A> {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 12 |     pub paren: syn::token::Paren,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attrs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `key` and `eq` are never read
[INFO] [stdout]   --> src/utils.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Attr<K, V> {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 27 |     pub key: K,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 28 |     pub eq: syn::token::Eq,
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `paren` is never read
[INFO] [stdout]   --> src/utils.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Attrs<A> {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 12 |     pub paren: syn::token::Paren,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attrs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `key` and `eq` are never read
[INFO] [stdout]   --> src/utils.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Attr<K, V> {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 27 |     pub key: K,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 28 |     pub eq: syn::token::Eq,
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Attr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.40s
[INFO] running `Command { std: "docker" "inspect" "085e539e547f0ced15f8c87c51e7fe6bf4d654c5e9c288b38eb4ee5363ca7db9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "085e539e547f0ced15f8c87c51e7fe6bf4d654c5e9c288b38eb4ee5363ca7db9", kill_on_drop: false }`
[INFO] [stdout] 085e539e547f0ced15f8c87c51e7fe6bf4d654c5e9c288b38eb4ee5363ca7db9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] a2dea27141040d665ecc4b89fab7abb8c4f1631d85a6cfc7d68edaae0383b8d4
[INFO] running `Command { std: "docker" "start" "-a" "a2dea27141040d665ecc4b89fab7abb8c4f1631d85a6cfc7d68edaae0383b8d4", kill_on_drop: false }`
[INFO] [stderr] warning: field `paren` is never read
[INFO] [stderr]   --> src/utils.rs:12:9
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct Attrs<A> {
[INFO] [stderr]    |            ----- field in this struct
[INFO] [stderr] 12 |     pub paren: syn::token::Paren,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Attrs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `key` and `eq` are never read
[INFO] [stderr]   --> src/utils.rs:27:9
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub struct Attr<K, V> {
[INFO] [stderr]    |            ---- fields in this struct
[INFO] [stderr] 27 |     pub key: K,
[INFO] [stderr]    |         ^^^
[INFO] [stderr] 28 |     pub eq: syn::token::Eq,
[INFO] [stderr]    |         ^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Attr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `tiny-multihash-proc-macro` (lib) generated 2 warnings
[INFO] [stderr] warning: `tiny-multihash-proc-macro` (lib test) generated 2 warnings (2 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tiny_multihash_proc_macro-e2fa201fe32b473c)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout] test multihash::tests::test_multihash_derive ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- multihash::tests::test_multihash_derive stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'multihash::tests::test_multihash_derive' (16) panicked at src/utils.rs:49:5:
[INFO] [stdout] assertion failed: `(left == right)`
[INFO] [stdout] 
[INFO] [stdout] [1mDiff[0m [31m< left[0m / [32mright >[0m :
[INFO] [stdout] [31m<[0m[31m"impl From < Code > for u64 { fn from (c : Code) -> Self { match c { Code :: Identity256 => 0x00 , # [cfg (feature = \"strobe\")] Code :: Strobe256 => 0x01 , } } } impl core :: convert :: TryFrom < u64 > for Code { type Error = [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Error ; fn try_from (n : u64) -> Result < Self , Self :: Error > { match n { 0x00 => Ok (Self :: Identity256) , # [cfg (feature = \"strobe\")] 0x01 => Ok (Self :: Strobe256) , _ => Err (Self :: Error :: UnsupportedCode (n)) , } } } # [doc = r\" Multihash.\"] # [derive (Clone , Debug , Eq , PartialEq)] pub enum Multihash { # [doc = r\" Multihash array for hash function.\"] Identity256 (< multihash :: Identity256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest) , # [doc = r\" Multihash array for hash function.\"] # [cfg (feature = \"strobe\")] Strobe256 (< multihash :: Strobe256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest) , } impl [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: MultihashDigest < Code > for Multihash { fn code (& self) -> Code { match self { Multihash :: Identity256 (mh) => Code :: Identity256 , # [cfg (feature = \"strobe\")] Multihash :: Strobe256 (mh) => Code :: Strobe256 , } } fn digest (& self) -> & [u8] { match self { Multihash :: Identity256 (mh) => mh . as_ref () , # [cfg (feature = \"strobe\")] Multihash :: Strobe256 (mh) => mh . as_ref () , } } # [cfg (feature = \"std\")] fn read < R : std :: io :: Read > (mut r : R) -> Result < Self , [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Error > where Self : Sized { let code = [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: read_code (& mut r) ? ; match code { Code :: Identity256 => Ok (Self :: Identity256 ([0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: read_digest (r) ?)) , # [cfg (feature = \"strobe\")] Code :: Strobe256 => Ok (Self :: Strobe256 ([0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: read_digest (r) ?)) , } } } impl From << multihash :: Identity256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest > for Multihash { fn from (digest : < multihash :: Identity256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest) -> Self { Self :: Identity256 (digest) } } # [cfg (feature = \"strobe\")] impl From << multihash :: Strobe256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest > for Multihash { fn from (digest : < multihash :: Strobe256 as [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher > :: Digest) -> Self { Self :: Strobe256 (digest) } } impl [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: MultihashCode for Code { type Multihash = Multihash ; fn size (& self) -> u8 { use [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher ; match self { Code :: Identity256 => multihash :: Identity256 :: size () , # [cfg (feature = \"strobe\")] Code :: Strobe256 => multihash :: Strobe256 :: size () , } } fn digest (& self , input : & [u8]) -> Self :: Multihash { use [0m[1;48;5;52;31mcr[0m[31ma[0m[1;48;5;52;31mte[0m[31m :: Hasher ; match self { Code :: Identity256 => Multihash :: Identity256 (multihash :: Identity256 :: digest (input)) , # [cfg (feature = \"strobe\")] Code :: Strobe256 => Multihash :: Strobe256 (multihash :: Strobe256 :: digest (input)) , } } }"[0m
[INFO] [stdout] [32m>[0m[32m"impl From < Code > for u64 { fn from (c : Code) -> Self { match c { Code :: Identity256 => 0x00 , # [cfg (feature = \"strobe\")] Code :: Strobe256 => 0x01 , } } } impl core :: convert :: TryFrom < u64 > for Code { type Error = [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Error ; fn try_from (n : u64) -> Result < Self , Self :: Error > { match n { 0x00 => Ok (Self :: Identity256) , # [cfg (feature = \"strobe\")] 0x01 => Ok (Self :: Strobe256) , _ => Err (Self :: Error :: UnsupportedCode (n)) , } } } # [doc = r\" Multihash.\"] # [derive (Clone , Debug , Eq , PartialEq)] pub enum Multihash { # [doc = r\" Multihash array for hash function.\"] Identity256 (< multihash :: Identity256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest) , # [doc = r\" Multihash array for hash function.\"] # [cfg (feature = \"strobe\")] Strobe256 (< multihash :: Strobe256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest) , } impl [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: MultihashDigest < Code > for Multihash { fn code (& self) -> Code { match self { Multihash :: Identity256 (mh) => Code :: Identity256 , # [cfg (feature = \"strobe\")] Multihash :: Strobe256 (mh) => Code :: Strobe256 , } } fn digest (& self) -> & [u8] { match self { Multihash :: Identity256 (mh) => mh . as_ref () , # [cfg (feature = \"strobe\")] Multihash :: Strobe256 (mh) => mh . as_ref () , } } # [cfg (feature = \"std\")] fn read < R : std :: io :: Read > (mut r : R) -> Result < Self , [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Error > where Self : Sized { let code = [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: read_code (& mut r) ? ; match code { Code :: Identity256 => Ok (Self :: Identity256 ([0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: read_digest (r) ?)) , # [cfg (feature = \"strobe\")] Code :: Strobe256 => Ok (Self :: Strobe256 ([0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: read_digest (r) ?)) , } } } impl From << multihash :: Identity256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest > for Multihash { fn from (digest : < multihash :: Identity256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest) -> Self { Self :: Identity256 (digest) } } # [cfg (feature = \"strobe\")] impl From << multihash :: Strobe256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest > for Multihash { fn from (digest : < multihash :: Strobe256 as [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher > :: Digest) -> Self { Self :: Strobe256 (digest) } } impl [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: MultihashCode for Code { type Multihash = Multihash ; fn size (& self) -> u8 { use [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher ; match self { Code :: Identity256 => multihash :: Identity256 :: size () , # [cfg (feature = \"strobe\")] Code :: Strobe256 => multihash :: Strobe256 :: size () , } } fn digest (& self , input : & [u8]) -> Self :: Multihash { use [0m[1;48;5;22;32mmultih[0m[32ma[0m[1;48;5;22;32msh[0m[32m :: Hasher ; match self { Code :: Identity256 => Multihash :: Identity256 (multihash :: Identity256 :: digest (input)) , # [cfg (feature = \"strobe\")] Code :: Strobe256 => Multihash :: Strobe256 (multihash :: Strobe256 :: digest (input)) , } } }"[0m
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x77dff4f8391a - std[f92b4c606f291077]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x77dff4f8391a - std[f92b4c606f291077]::backtrace_rs::backtrace::trace_unsynchronized::<std[f92b4c606f291077]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x77dff4f8391a - std[f92b4c606f291077]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x77dff4f8391a - <<std[f92b4c606f291077]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[786f478f706679df]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x77dff4fc592a - <core[786f478f706679df]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x77dff4fc592a - core[786f478f706679df]::fmt::write
[INFO] [stdout]    6:     0x77dff4f94ea2 - std[f92b4c606f291077]::io::default_write_fmt::<alloc[64763625b5a07cdb]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x77dff4f94ea2 - <alloc[64763625b5a07cdb]::vec::Vec<u8> as std[f92b4c606f291077]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/io/mod.rs:1994:13
[INFO] [stdout]    8:     0x77dff4f5317f - <std[f92b4c606f291077]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x77dff4f5317f - std[f92b4c606f291077]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x77dff4f75be9 - std[f92b4c606f291077]::panicking::default_hook
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x64f2b1ef195c - <alloc[64763625b5a07cdb]::boxed::Box<dyn for<'a, 'b> core[786f478f706679df]::ops::function::Fn<(&'a std[f92b4c606f291077]::panic::PanicHookInfo<'b>,), Output = ()> + core[786f478f706679df]::marker::Sync + core[786f478f706679df]::marker::Send> as core[786f478f706679df]::ops::function::Fn<(&std[f92b4c606f291077]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/alloc/src/boxed.rs:2254:9
[INFO] [stdout]   12:     0x64f2b1ef195c - test[20e1f0ae6cad7a17]::test_main_with_exit_callback::<test[20e1f0ae6cad7a17]::test_main::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x77dff4f75e62 - <alloc[64763625b5a07cdb]::boxed::Box<dyn for<'a, 'b> core[786f478f706679df]::ops::function::Fn<(&'a std[f92b4c606f291077]::panic::PanicHookInfo<'b>,), Output = ()> + core[786f478f706679df]::marker::Sync + core[786f478f706679df]::marker::Send> as core[786f478f706679df]::ops::function::Fn<(&std[f92b4c606f291077]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/alloc/src/boxed.rs:2254:9
[INFO] [stdout]   14:     0x77dff4f75e62 - std[f92b4c606f291077]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x77dff4f53238 - std[f92b4c606f291077]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x77dff4f49a69 - std[f92b4c606f291077]::sys::backtrace::__rust_end_short_backtrace::<std[f92b4c606f291077]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x77dff4f5491d - __rustc[8241495c18a89d70]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x77dff4fc633c - core[786f478f706679df]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x64f2b1e74616 - tiny_multihash_proc_macro[25a0341ea2751729]::utils::assert_proc_macro
[INFO] [stdout]                                at /opt/rustwide/workdir/src/utils.rs:49:5
[INFO] [stdout]   20:     0x64f2b1e8575b - tiny_multihash_proc_macro[25a0341ea2751729]::multihash::tests::test_multihash_derive
[INFO] [stdout]                                at /opt/rustwide/workdir/src/multihash.rs:403:9
[INFO] [stdout]   21:     0x64f2b1e7f257 - tiny_multihash_proc_macro[25a0341ea2751729]::multihash::tests::test_multihash_derive::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/multihash.rs:290:31
[INFO] [stdout]   22:     0x64f2b1e7b1c6 - <tiny_multihash_proc_macro[25a0341ea2751729]::multihash::tests::test_multihash_derive::{closure#0} as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64f2b1ee5a3b - <fn() -> core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String> as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64f2b1ee5a3b - test[20e1f0ae6cad7a17]::__rust_begin_short_backtrace::<core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String>, fn() -> core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:663:18
[INFO] [stdout]   25:     0x64f2b1ef242b - test[20e1f0ae6cad7a17]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:686:74
[INFO] [stdout]   26:     0x64f2b1ef242b - <core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<test[20e1f0ae6cad7a17]::run_test_in_process::{closure#0}> as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   27:     0x64f2b1ef242b - std[f92b4c606f291077]::panicking::catch_unwind::do_call::<core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<test[20e1f0ae6cad7a17]::run_test_in_process::{closure#0}>, core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:581:40
[INFO] [stdout]   28:     0x64f2b1ef242b - std[f92b4c606f291077]::panicking::catch_unwind::<core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String>, core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<test[20e1f0ae6cad7a17]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:544:19
[INFO] [stdout]   29:     0x64f2b1ef242b - std[f92b4c606f291077]::panic::catch_unwind::<core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<test[20e1f0ae6cad7a17]::run_test_in_process::{closure#0}>, core[786f478f706679df]::result::Result<(), alloc[64763625b5a07cdb]::string::String>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panic.rs:359:14
[INFO] [stdout]   30:     0x64f2b1ef242b - test[20e1f0ae6cad7a17]::run_test_in_process
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:686:27
[INFO] [stdout]   31:     0x64f2b1ef242b - test[20e1f0ae6cad7a17]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:607:43
[INFO] [stdout]   32:     0x64f2b1eedb44 - test[20e1f0ae6cad7a17]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/test/src/lib.rs:637:41
[INFO] [stdout]   33:     0x64f2b1eedb44 - std[f92b4c606f291077]::sys::backtrace::__rust_begin_short_backtrace::<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   34:     0x64f2b1ef5032 - std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked::<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/thread/lifecycle.rs:91:13
[INFO] [stdout]   35:     0x64f2b1ef5032 - <core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   36:     0x64f2b1ef5032 - std[f92b4c606f291077]::panicking::catch_unwind::do_call::<core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:581:40
[INFO] [stdout]   37:     0x64f2b1ef5032 - std[f92b4c606f291077]::panicking::catch_unwind::<(), core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panicking.rs:544:19
[INFO] [stdout]   38:     0x64f2b1ef5032 - std[f92b4c606f291077]::panic::catch_unwind::<core[786f478f706679df]::panic::unwind_safe::AssertUnwindSafe<std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/panic.rs:359:14
[INFO] [stdout]   39:     0x64f2b1ef5032 - std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked::<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/thread/lifecycle.rs:89:26
[INFO] [stdout]   40:     0x64f2b1ef5032 - <std[f92b4c606f291077]::thread::lifecycle::spawn_unchecked<test[20e1f0ae6cad7a17]::run_test::{closure#1}, ()>::{closure#1} as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x77dff4f80fff - <alloc[64763625b5a07cdb]::boxed::Box<dyn core[786f478f706679df]::ops::function::FnOnce<(), Output = ()> + core[786f478f706679df]::marker::Send> as core[786f478f706679df]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/alloc/src/boxed.rs:2240:9
[INFO] [stdout]   42:     0x77dff4f80fff - <std[f92b4c606f291077]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/1f7f8ea0721a3b1eb73e6c6d25cccb371434b320/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   43:     0x77dff4cf8aa4 - <unknown>
[INFO] [stdout]   44:     0x77dff4d85a64 - clone
[INFO] [stdout]   45:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     multihash::tests::test_multihash_derive
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.68s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "a2dea27141040d665ecc4b89fab7abb8c4f1631d85a6cfc7d68edaae0383b8d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a2dea27141040d665ecc4b89fab7abb8c4f1631d85a6cfc7d68edaae0383b8d4", kill_on_drop: false }`
[INFO] [stdout] a2dea27141040d665ecc4b89fab7abb8c4f1631d85a6cfc7d68edaae0383b8d4
